<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/itcast" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		List list = new ArrayList();
		list.add("a");
		list.add("b");
		request.setAttribute("list", list);
	%>
	<c:foreach var="str" items="${list }">${str }</c:foreach>
	<br />
	<hr>
	<br />

	<%
		list = new ArrayList();
		list.add("a");
		list.add("b");
		request.setAttribute("list", list);

		Integer arrInteger[] = new Integer[] { 1, 3, 4 };
		request.setAttribute("arr", arrInteger);
		Map map = new HashMap();
		map.put("a", "aaaaa");
		map.put("b", "bbbbb");
		request.setAttribute("map", map);
	%>

	<c:foreach2 items="${list }" var="str">
	${str}
	</c:foreach2>
	<br>
	<hr>
	<c:foreach2 items="${arr }" var="num">
	${num }
	</c:foreach2>
	<br>
	<hr>

	<c:foreach2 items="${map }" var="me">
	${me }
	</c:foreach2>
	<br>
	<hr>
 <%int i[]=new int[]{1,2,3};
request.setAttribute("i", i);
%>
	<c:foreach2 items="${i }" var="num">
	${num }
	</c:foreach2>
	<br>
	<hr> 

</body>
</html>